//
//  LoginView.m
//  MV_C_P_VM
//
//  Created by Willian on 2021/4/29.
//

#import "MVCLoginView.h"

@implementation MVCLoginView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUpUi];
    }
    return self;
}

- (void)setUpUi{
    self.usernameTextField = [[UITextField alloc] initWithFrame:CGRectMake(50, 100, 200, 68)];
    self.usernameTextField.placeholder = @"用户名";
    [self addSubview:self.usernameTextField];
    
    self.passwordTextField = [[UITextField alloc] initWithFrame:CGRectMake(50, 200, 200, 68)];
    self.passwordTextField.placeholder = @"密码";
    [self addSubview:self.passwordTextField];
    
    self.loginButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.loginButton.backgroundColor = [UIColor whiteColor];
    [self.loginButton setTitle:@"登录" forState:UIControlStateNormal];
    [self.loginButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    self.loginButton.frame = CGRectMake(50, 300, 200, 68);
    [self addSubview:self.loginButton];
}

@end
